package cn.wolfcode.trip.base.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter@Getter
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    protected int currentPage=1;
    protected int pageSize=3;

    protected String keyword;
    protected String orderBy;//用于排序

    public String getKeyword() {
        return StringUtils.hasLength(keyword)?keyword:null;
    }
}
